package com.example.volleyball.playcharting.android;
import java.io.*;
class HackedObjectInputStream extends ObjectInputStream {

    public HackedObjectInputStream(InputStream in) throws IOException {
        super(in);
    }

    @Override
    protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException {
        ObjectStreamClass resultClassDescriptor = super.readClassDescriptor();

        if (resultClassDescriptor.getName().equals("sharedClasses.Match"))
            resultClassDescriptor = ObjectStreamClass.lookup(sharedClasses.Match.class);

        return resultClassDescriptor;
    }
}